package top.huiwow.serverkick;

import org.bukkit.command.CommandExecutor;
import org.bukkit.command.PluginCommand;
import org.bukkit.command.TabCompleter;
import org.bukkit.event.Listener;
import org.bukkit.plugin.PluginManager;
import org.bukkit.plugin.java.JavaPlugin;

import java.util.Arrays;

public class Main extends JavaPlugin {
    private void setExecutor(String name, CommandExecutor executor) {
        getCommand(name).setExecutor(executor);
    }

    @Override
    public void onEnable() {
        System.out.println("---------------------------");
        System.out.println("SERVERKICK ENABLED!");
        System.out.println("---------------------------");
        setExecutor("serverkick",new ServerKickCommand());
    }
}
